package com.lzy.concertticket.threadlocal;

import jakarta.servlet.http.HttpServletRequest;

public class RequestThreadLocal {
    private static final ThreadLocal<HttpServletRequest> t = new ThreadLocal<>();
    public static void set(HttpServletRequest request) {
        t.set(request);
    }
    public static HttpServletRequest get() {
        return t.get();
    }
    public static void remove() {
        t.remove();
    }
}
